#include<iostream>
#include<string>
using namespace std;


template<class T>
void test01(T& animal) {
  animal.m_name = 'l';
}

template<class T1, class T2>
class Animal {
  public:
    Animal(T1 name, T1 age) {
      this->m_name = name;
      this->m_age = age;
    };
    void say() {
      cout <<"我的名字是：" << this->m_name << endl;
    };
    T1 m_name;

  private:
    T2 m_age;
};

int main() {
  Animal<char, int> animal1('x', 23);
  test01(animal1);
  cout << animal1.m_name <<endl;
  return 0;
};

